import java.util.function.Function;

/**
 * @ClassName Demo11
 * @Description TODO
 * @Author Li
 * @Date 2022/8/14 15:14
 * @ModifyDate 2022/8/14 15:14
 * @Version 1.0
 */
public class Demo11 {
    private static void method(Function<String, Integer> fun) {
        Integer a = fun.apply("345");
        System.out.println(a);
    }

    public static void main(String[] args) {
        method(s -> Integer.parseInt(s) + 321);
    }
}
